import Layout from '@/layout'

const wxCpRouter = [{
  path: '/wxCp',
  component: Layout,
  redirect: '/wxCp/wxCAuthorize',
  alwaysShow: true,
  name: 'wxCp',
  meta: {
    title: '企业微信配置',
    icon: 'lock'
  },
  children: [
    {
      path: 'wxCpAuthorize',
      component: () => import('@/views/wxCp/wxCpAuthorize'),
      name: 'wxCpAuthorize',
      meta: {
        title: '企业微信配置 - '
      }
    },
    {
      path: 'wxCpTpInstall',
      component: () => import('@/views/wxCp/wxCpTpInstall'),
      name: 'wxCpTpInstall',
      meta: {
        title: '企微应用安装 - '
      }
    },
    {
      path: 'wxCpContactAuthorize',
      component: () => import('@/views/wxCp/wxCpContactAuthorize'),
      name: 'wxCpContactAuthorize',
      meta: {
        title: '企微通讯录授权 - '
      }
    },
    {
      path: 'cpPermissionSetting',
      component: () => import('@/views/wxCp/cpPermissionSetting'),
      name: 'cpPermissionSetting',
      meta: {
        title: '企微用户权限 - '
      }
    }
  ]
}]
export default wxCpRouter
